package com.jcl.recruit.basic.register.model;

import com.jcl.recruit.corp.model.Subcompany;
import com.jcl.recruit.org.model.Department;
import com.jcl.recruit.user.model.User;

/**
 * @ClassName RegisterCorpResult

 * @Author yyliu
 * @Date 2018/12/17 10:21
 * @Version 1.0
 **/
public class RegisterCorpResult extends RegisterResult{

    private Subcompany subcompany;

    private Department department;

    private User user;

    private Integer userId;

    public Subcompany getSubcompany() {
        return subcompany;
    }

    public void setSubcompany(Subcompany subcompany) {
        this.subcompany = subcompany;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getUserId() {
        if(null != user){
            userId = user.getId();
        }
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
